package com.zqq.framedagger.ui.activity

import android.os.Bundle
import com.zqq.baselibrary.ext.onClick
import com.zqq.baselibrary.ui.activity.BaseActivity
import com.zqq.framedagger.R
import com.zqq.user.utils.UserPrefsUtils
import kotlinx.android.synthetic.main.activity_setting.*
import org.jetbrains.anko.toast

/**
 * 设置界面  wc
 */
class SettingActivity : BaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_setting)

        mUserProtocolTv.onClick { toast("用户协议") }
        mFeedBackTv.onClick { toast("反馈意见") }
        mAboutTv.onClick { toast("关于") }

        //退出登录，清空本地用户数据
        mLogoutBtn.onClick {
            UserPrefsUtils.putUserInfo(null)
            finish()
        }
    }
}
